﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Neural
{
    class TextFileReader
    {
        /** 
         * @Author harpserg@gmail.com
         */
        private StreamReader file;
        
        public TextFileReader(string path)
        {
            try
            {
                file = new System.IO.StreamReader(path);
            }
            catch (Exception e)
            {
                Console.WriteLine("TextFileReader exception: " + e);                
            }
        }
        
        public string getNextLine()
        {
            return file.ReadLine();
        }

        public void skipNextLine()
        {
            file.ReadLine();
        }

        public void closeFile()
        {
            file.Close();
        }
    }
}
